package com.wuliu.model;

import lombok.Data;

@Data
public class News {
    private Integer id;
    private String time;
    private String name;
    private String desc;
    private String source;
    private String author;
    private Integer views;
    private Integer cid;
    private  NewsClass newsClass;

    public News(Integer id, String time, String name, String desc, String source, String author, Integer views, Integer cid, NewsClass newsClass) {
        this.id = id;
        this.time = time;
        this.name = name;
        this.desc = desc;
        this.source = source;
        this.author = author;
        this.views = views;
        this.cid = cid;
        this.newsClass = newsClass;
    }

    public News(Integer id, String time, String name, String desc, String source, String author, Integer views, Integer cid) {
        this.id = id;
        this.time = time;
        this.name = name;
        this.desc = desc;
        this.source = source;
        this.author = author;
        this.views = views;
        this.cid = cid;
    }
}
